package cn.monkey.family.data.shop.order;

import cn.monkey.family.data.QueryRequest;
import cn.monkey.family.data.Range;
import lombok.Builder;
import lombok.Getter;

@Builder(toBuilder = true)
@Getter
public class OrderQueryRequest implements QueryRequest {
    private String[] status;
    private String[] detailIds;
    private String itemName;
    private Range<Long> createdTimeRange;

    public OrderDetailQueryRequest toDetailQueryRequest() {
        return OrderDetailQueryRequest.builder()
                .itemName(this.itemName)
                .build();
    }
}
